﻿using UnityEngine;
public class SerializeVector2
{
    public float X;
    public float Y;
    public SerializeVector2(float x, float y)
    {
        X = x;
        Y =y;
    }
    public Vector2 SerializeToUnity()
    {
        return new Vector2(X, Y);
    }
}
public class SerializeIntVector2
{
    public int X;
    public int Y;
    public SerializeIntVector2(int x, int y)
    {
        X = x;
        Y = y;
    }
    public Vector3Int SerializeToUnity()
    {
        return new Vector3Int(X, Y,0);
    }
    public Vector2Int SerializeToVector2Unity()
    {
        return new Vector2Int(X, Y);
    }
}
public class SerializeVector3
{
    public float X;
    public float Y;
    public float Z;
    public SerializeVector3(float x, float y,float z )
    {
        X = x;
        Y = y;
        Z = z;
    }
    public Vector3 SerializeToUnity()
    {
        return new Vector3(X, Y, Z);
    }

}